#pragma once

#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <assert.h>

typedef int STDataType;

typedef struct Stack
{
	STDataType* arr;
	int top;
	int capacity;
}Stack, * pStack;

void StackInit(pStack ps);

void StackPush(pStack ps, STDataType data);

void StackPop(pStack ps);

bool StackEmpty(pStack ps);

STDataType StackTop(pStack ps);

int StackSize(pStack ps);

void StackDestory(pStack ps);